1e71d51ff7b0e487f505ddcfa41952707f5d9e9a,opennms-snmp/opennms-snmp-joesnmp/src/main/java/org/opennms/netmgt/snmp/joesnmp/JoeSnmpStrategy.java,JoeSnmpStrategy,sendTest,#String#number#String#SnmpPduRequest#,353
Before Change
public static void sendTest(String destAddr, int destPort, String community, SnmpPduRequest pdu) throws UnknownHostException {
InetAddress agentAddress = InetAddress.getByName(destAddr);
for (Iterator it = m_registrations.values().iterator(); it.hasNext();) {
RegistrationInfo info = (RegistrationInfo) it.next();
if (destPort == info.getPort())
info.getHandler().snmpReceivedTrap(info.getSession(), agentAddress, destPort, new SnmpOctetString(community.getBytes()), pdu);
}
}
After Change
public static void sendTest(String destAddr, int destPort, String community, SnmpPduRequest pdu) throws UnknownHostException {
InetAddress agentAddress = InetAddress.getByName(destAddr);
for (Iterator<RegistrationInfo> it = s_registrations.values().iterator(); it.hasNext();) {
RegistrationInfo info = it.next();
if (destPort == info.getPort()) {
info.getHandler().snmpReceivedTrap(info.getSession(), agentAddress, destPort, new SnmpOctetString(community.getBytes()), pdu);
}
}
}